<?xml version="1.0" encoding="utf-8" ?>

<!--
Copyright (C) 2010 Calin Radoni

This file is part of CHScanner.

CHScanner is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

CHScanner is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with CHScanner. If not, see <http://www.gnu.org/licenses/>.
-->

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:template match="Document/PageInfo">
	<div class="FooterText">
		<hr class="Hr70"/>
		
		<!--
		<div class="updateDate">
			<xsl:if test="string-length($Last.Site.Update) &gt; 0">
				<xsl:text>Last site update is </xsl:text>
				<xsl:value-of select="$Last.Site.Update"/>
			</xsl:if>
			<xsl:if test="string-length(PageDate) &gt; 0">
				<xsl:choose>
					<xsl:when test="string-length($Last.Site.Update) &gt; 0">
						<xsl:text>, l</xsl:text>
					</xsl:when>
					<xsl:otherwise>
						<xsl:text>L</xsl:text>
					</xsl:otherwise>
				</xsl:choose>
				<xsl:text>ast page modification is </xsl:text>
				<xsl:value-of select="PageDate"/>
			</xsl:if>
		</div>
		-->
		<div class="copyright">
			<xsl:text>Copyright &#169; </xsl:text>
			<xsl:value-of select="$Site.Year"/>
			<xsl:text> </xsl:text>
			<xsl:value-of select="$Site.Author"/>

			<xsl:text> </xsl:text>
			<img src="images/tabSep.png"/>
			<xsl:text> </xsl:text>

			<xsl:text>Hosted on </xsl:text>
			<a class="footerLink">
				<xsl:attribute name="href">
					<xsl:value-of select="$Site.Location"/>
				</xsl:attribute>
				<xsl:value-of select="$Site.Location"/>
			</a>

			<xsl:text> </xsl:text>
			<img src="images/tabSep.png"/>
			<xsl:text> </xsl:text>

			<xsl:if test="string-length($Last.Site.Update) &gt; 0">
				<xsl:text>Last site update is </xsl:text>
				<xsl:value-of select="$Last.Site.Update"/>
			</xsl:if>
			<xsl:if test="string-length(PageDate) &gt; 0">
				<xsl:choose>
					<xsl:when test="string-length($Last.Site.Update) &gt; 0">
						<xsl:text>, l</xsl:text>
					</xsl:when>
					<xsl:otherwise>
						<xsl:text>L</xsl:text>
					</xsl:otherwise>
				</xsl:choose>
				<xsl:text>ast page modification is </xsl:text>
				<xsl:value-of select="PageDate"/>
			</xsl:if>
		</div>
	</div>
</xsl:template>

<xsl:template match="Document/PageInfo/PageDate"/>

</xsl:stylesheet>